#ifndef __HIKARI_SCRIPT_H_COMPONENT__
#define __HIKARI_SCRIPT_H_COMPONENT__

#include "hikari.h"

class ScriptHComponent:public hComponent{
	BaseHikariScript*script;
public:
	ScriptHComponent(BaseHikariScript*script){
		this->script=script;
	}

	virtual void onSceneLoad(HikariContext*context, HObj*object){
		script->sceneLoaded(object, context);
	}

	virtual void onSceneUnload(HikariContext*context, HObj*object){
		script->sceneUnloading(object, context);
	}

	virtual void update(HikariContext*context, HObj*object){
		script->update(object, context);
	}
};

#endif